import calculatorPkg.Calculator;
import org.junit.Test;

import static org.junit.Assert.assertEquals;

/**
 * Created with IntelliJ IDEA.
 * User: ruchi
 * Date: 01/08/13
 * Time: 10:36 PM
 * To change this template use File | Settings | File Templates.
 */
public class CalculatorTest {
    Calculator calculator = new Calculator();

    @Test
    public void test1_should_verify_the_output_of_calculator() {
        //  assertEquals(46, calculator.returnResults("45,1+"));
        assertEquals(135, calculator.returnResults("45,89,1,+"));
    }

    @Test
    public void testMultiplicationOfThreeFourSix() throws Exception {

        assertEquals(72, calculator.returnResults("3-4-6-*"));

    }
}
